package org.ne.banksys.service;

import com.github.pagehelper.Page;
import org.ne.banksys.entity.User;

import java.util.List;

/**
 * @author wey
 * @date 2025/6/13 下午10:38 06
 **/
public interface UserService {

    List<User> getAll();

    User findByUserName(String username);
    User findByUserPID(String PID);
    User findByUserPhone(String phone);
    User findUserById(Long id);

    void update(User user);

    void updateAddress(String address);

    void updatePwd(String newMd5);

    void register(String username, String password, String PID, String phone);

    void delete(String PID,String username, String pass);


    void delete(Long id);

    Page<User> getAllUsers(Integer page, Integer size);

    List<User> searchUserByUserName(String username);
}
